<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>  
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message code="itemList.title" /></title>
</head>
<body>
<display:table id="itemList" name="itemList" pagesize="15" varTotals="totals" requestURI="itemList.html">
	<display:column property="date" titleKey="itemList.date" group="1" decorator="jun.home.dailycost.web.decorator.DateColumnDecorator"/>
	<display:column property="cat" titleKey="itemList.type" group="2" decorator="jun.home.dailycost.web.decorator.CategoryColumnDecorator"/>
	<display:column property="cost" titleKey="itemList.cost" total="true" href="item.html" paramId="id" paramProperty="id"/>
	<display:column property="remark" titleKey="itemList.remark" href="item.html" paramId="id" paramProperty="id"/>
	<c:if test="${not empty itemList_rowNum and itemList_rowNum > 0}">
		<display:footer>
			<tr>
				<td><spring:message code="itemList.totalItems"/></td>
				<td colspan="3">${itemList_rowNum}</td>
			</tr>
		    <tr>
		    	<td><spring:message code="itemList.totalCost"/></td>
		    	<td colspan="3">${totals.column3}</td>
		    </tr>
		</display:footer>
	</c:if>
</display:table>
</body>
</html>